package com.fz.song.feibao.web.entity.vo.login.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author 77088
 * @title: AdminLoginReqVO
 * @projectName feibao
 * @description: 管理员用户登录请求实体类
 * @date 2021/10/300:44
 */

@Data
@ApiModel(value = "管理员用户登录请求实体类")
public class AdminLoginReqVO {

    @NotBlank(message = "用户名不能为空")
    @Length(min = 4, max = 20, message = "用户名长度最长20个字符")
    @ApiModelProperty(value = "用户名")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Length(min = 4, max = 20, message = "密码长度最长20个字符")
    @ApiModelProperty(value = "密码")
    private String password;

}
